﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucSupportAddUpdate.ascx.cs" Inherits="MyWeb.Admin.Usercontrols.ucSupportAddUpdate" %>
<div id="page-content">
    <div id="page-header">
        <h1>
            <asp:Label ID="lblPageHeader" runat="server" Text="Chi tiết hỗ trợ"></asp:Label></h1>
    </div>
    <div class="container">
        <div class="box-header">
            <asp:Label ID="lblBoxHeader" runat="server" Text="Thông tin chi tiết"></asp:Label>
        </div>
        <div class="box">
            <table id="myTable" class="admintable" cellspacing="1" width="100%">
                <tr>
                    <td class="auto-style1"></td>
                    <td colspan="2">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="Label1" runat="server" Text="Người hỗ trợ:" Font-Bold="True"></asp:Label></td>
                    <td colspan="2">
                        <asp:TextBox ID="txtName" runat="server" Width="300px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Tên nhóm không được bỏ trống" ControlToValidate="txtName" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                    </td>
                </tr>

                <tr>
                    <td class="key">
                        <asp:Label ID="lblremk" runat="server" Text="Điện thoại:" Font-Bold="True"></asp:Label></td>
                    <td colspan="2">
                        <asp:TextBox ID="txtTel" runat="server" Width="200px" TextMode="Phone"></asp:TextBox>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="lblremk0" runat="server" Text="Kiểu nick:" Font-Bold="True"></asp:Label></td>
                    <td colspan="2">
                        <asp:DropDownList ID="ddlType" runat="server" Width="100px">
                            <asp:ListItem Value="0">Skype</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="lblremk1" runat="server" Text="Nick:" Font-Bold="True"></asp:Label></td>
                    <td colspan="2">
                        <asp:TextBox ID="txtNick" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="lblremk2" runat="server" Text="Thứ tự:" Font-Bold="True"></asp:Label></td>
                    <td colspan="2">
                        <asp:TextBox ID="txtOrder" runat="server" Width="100px" TextMode="Number"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="lblremk3" runat="server" Text="Công bố:" Font-Bold="True"></asp:Label></td>
                    <td colspan="2">
                        <asp:CheckBox ID="ckCongbo" runat="server" Checked="True" />
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Lưu" OnClick="btnSave_Click" />
            <asp:Button ID="btnSaveAndNew" runat="server" CssClass="button" Text="Lưu & Thêm mới" OnClick="btnSaveAndNew_Click" />
            <asp:Button ID="btnCancelAdd" runat="server" CausesValidation="False" CssClass="button" Text="Đóng" OnClick="btnCancelAdd_Click" />
        </div>
    </div>
</div>
<script type="text/javascript">

    function BrowseServer() {

        var finder = new CKFinder();
        finder.basePath = "ckfinder";
        finder.selectActionFunction = SetFileField;
        finder.popup();
    }

    function SetFileField(fileUrl) {
        document.getElementById('ContentPlaceHolder1_ctl00_txtImage').value = fileUrl;
    }

</script>
